package com.eighth.factory.simple;

/**
 * Author Name: Justice
 * Project Name: Stage11
 * File Name: TestDemo
 * Package Name: com.eighth.factory.simple
 * Date: 2020-03-27 13:54
 * Copyright (c) 2020,All Rights Reserved.
 * 简单工厂模式
 */


public class TestDemo {
    public static void main(String[] args) {
        PhoneFactory phoneFactory = new PhoneFactory();
        Phone iPhone = phoneFactory.makePhone("IPhone");
        System.out.println(iPhone);
    }
}
